package com.example.demoshiro.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * <p>
 * Shiro重写
 * </p>
 *
 * @author ross zhang
 * @version 1.0
 * @PackageName demo-one
 * @Package com.example.demoshiro.shiro
 * @since 2022/4/16 15:28
 */
public class JwtToken implements AuthenticationToken {

    private String token;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
